package com.ss.android.article.base.feature.model;

import android.content.Context;
import com.ss.android.common.app.permission.PermissionsResultAction;
import com.ss.android.newmedia.util.AppUtil;

import org.json.JSONObject;

final class e extends PermissionsResultAction {
    private final AppAd c;
    private final Context a;
    private final JSONObject b;

    e(AppAd arg1, Context arg2, JSONObject arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onGranted() {
        if(AppUtil.a(this.c.downloadUrl, this.c.appName, this.a, this.b) >= 0) {
            android.support.design.a.a(new com.ss.android.article.base.feature.b.a(this.c.id, System.currentTimeMillis()), false);
        }
    }

    public final void onDenied(String arg1) {
    }
}


